<?php

declare(strict_types=1);

namespace app\admin\controller;

use app\admin\model\Admin;
use app\BaseController;

class Index extends BaseController
{
    public function index()
    {
        return '您好！这是一个[admin]示例应用';
    }
    public function find()
    {
        $page = $this->request->param('page');
        $DBOrder = new Admin();
        $info = $DBOrder->page($page, 11)->select();
        $count = $DBOrder->count();
        return result(['sub' => $info, 'count' => $count]);
    }
}